package com.example.exception;

import com.example.enums.ResultEnum;

public class ProductException extends RuntimeException {

	private Integer code;

	public ProductException(String message, Integer code) {
		super(message);
		this.code = code;
	}

	public ProductException(ResultEnum resultEnum) {
		super(resultEnum.getMessage());
		this.code = resultEnum.getCode();
	}
}
